<?PHP

session_start();



$active = 'flyers';

require('../db/opendb.php');

include("FCKeditor/fckeditor.php");

$listing_id = $_GET['listing_id'];

require('template_functions.php');



require_once 'SOAP/Client.php';

$wsdl = new SOAP_WSDL('http://realivent.com/soap/soap.php?wsdl');

$googleProxy = $wsdl->getProxy();

$out = $googleProxy->get_Listing_Details($listing_id);


//Open the template file and get the code.

$output = get_code($out, $_GET['template'], $listing_id, $_SESSION['memberships']);

$output .= "<div align=center style='padding-left:5px; font-family:verdana; font-size:10px;'><img align=absmiddle src=http://www.realivent.com/poster/images/logo_thumb.jpg> Make your listings stand out, use Realivent.com's FREE online flyer creator. [<a href = http://www.realivent.com/ld.php>Realivent.com</a>]<img src='http://realivent.info/accounts/visit.php?lid=$listing_id&type=C' width='0' height='0' /></div>";



?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"



"http://www.w3.org/TR/html4/loose.dtd">



<html>



<head>



<title>Realivent -- Listing Designer</title>



<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">



<link rel="stylesheet" type="text/css" href="../../accounts/style.css">



</head>







<body>



<CENTER>



<table width="1000" border="0" cellspacing="0" cellpadding="0">



<TR><tD><?php include('../../accounts/accounts_top_navigation.php'); ?>
<div id="spacer" style="padding-bottom:25px; height:40px;"></div>

</tD></TR>



  <tr>



    <td valign="top">



	<table width="100%"  border="0" cellspacing="0" cellpadding="0">



  		<tr>



			<td width="150" valign="top" align="left">


<div id="leftCol">
 		 <?php
 		 if(isset($_SESSION['id']) && $row['disp_profile'] != 'No')
 		 {
 		 	include("../../accounts/accounts_left_navigation.php");
 		 }
		 ?>
	</div>	<!-- Left Column -->  
				

			</td>



   			 <td width="650" valign="top">

					<div style="width:95%; padding-left:30px;">

					<span style="font-size:16px;">How to use</span><BR>

					

					Below is the code that you need to copy and then paste into your craigslist ad.<BR><BR>

					

					1. Click on the "select all" button. This will highlight all the text<BR>

					2. Copy the selected text. Either hit 'ctrl-c' or right click and then choose "copy".<BR>

					3. It is now in your clipboard. Go to the online post website and paste the code into th epost description.

					

					<br><BR>

				

		  

					<form id=theform>

					<input type="button" value="select all" onClick="javascript:this.form.code.focus();this.form.code.select();">

					<textarea name="code" style="width:90%;" cols="" rows="15">

					<?php

					echo $output;

					?>

					</textarea>

					</form>

			<BR>

			<BR>

		<a href=../../accounts/designer.php>Back to templates</a>

				</div>

			</td>

			<TD align="left" width="150" valign="top">

			<div style="border-bottom:1px solid black; font-size:18px; color:#FF6600;">Post to these sites:</div>

			<a target=mainFrame href=http://www.craigslist.com>Craigslist.com</a><BR />

			<a target=mainFrame href=http://www.backpage.com>Backpage.com</a><BR />

			<a target=mainFrame href=http://www.livedeal.com>Livedeal.com</a><BR />

			<a target=mainFrame href=http://www.fogster.com>Fogster.com</a><BR />

			</div>

			</TD>

		</tr>

	</table>

	</td>

	

</tr>

</table>



<?php include('../../footer.php'); ?>





</body>

</html>

